<template>
  <section>
    <!-- <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane v-for="(item,index) in acList" :label="item.label" :name="item.name" :key="index"></el-tab-pane>
    </el-tabs> -->
     <!-- <el-tab-pane label="消费记录" name="record"></el-tab-pane> -->
    <div>
      <comm v-if="active" :is="activeName" :detail="detail"></comm>
    </div>
  </section>
</template>
<script>
export default {
  name: "patientList",
  data() {
    return {
      activeName: "patient",
      acList: [
        {
          label: "患者档案",
          name: "patient"
        },
        {
          label: "会员管理",
          name: "vip"
        }
      ],
      active: false,
      detail: ""
    };
  },
  created() {},
  mounted() {
    let th = this;
    th.active = true;
  },
  methods: {
    handleClick(tab, event) {
    }
  },
  components: {
    patient: () => import("./index"),
    vip: () => import("./vip")
  }
};
</script>
<style lang="scss" scoped>
</style>

